'use strict';
global.names = ['11','33','yw','xc','wc','ztq','yyz','swh'];
module.exports = {

  'POST /api/repete': function (req, res) {
    let bl = names.indexOf(JSON.parse(req.body).name) > -1;
    let t = Math.random()*10000;
    setTimeout(function () {
        res.json({
            msg: '',
            result: 0,
            data: !bl
        });
    }, t);
  },

};
